package org.come.control;

import org.come.until.GoodsListFromServerUntil;
import org.come.until.GsonUtil;
import org.come.bean.FreshPackBean;
import org.come.action.FromServerAction;

public class FreshPackAction implements FromServerAction
{
    @Override
    public void controlMessFromServer(final String mes, final String type) {
        final FreshPackBean freshPackBean = (FreshPackBean)GsonUtil.getGsonUtil().getgson().fromJson(mes, FreshPackBean.class);
        if (freshPackBean != null && freshPackBean.getGoods() != null) {
            GoodsListFromServerUntil.Classification(freshPackBean.getGoods(), freshPackBean.getPackRecord().getRecord());
        }
    }
}
